<template>
  <div>
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page.sync="currentPage"
      :page-size="10"
      layout="prev, pager, next, jumper"
      :total="total"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: ["total"],
  name: "",
  components: {},
  data() {
    return {
      currentPage: 1
    };
  },
  mounted() {},
  methods: {
    handleCurrentChange(val) {
      this.currentPage = val;
      this.$emit("pageChange", this.currentPage);
    }
  }
};
</script>

<style lang="scss" scoped></style>
